package com.qzimp.fujiancuo.entity.vo;

import lombok.Getter;

@Getter
public enum ResultCode implements StatusCode{
    SUCCESS(1,"请求成功"),
    FAIL(0,"请求失败"),
    CUSTOM_ERROR(3,"自定义异常"),
    NO_DATA_ERROR(2,"no data"),
    VALIDATE_ERROR(1002, "参数校验失败"),
    RESPONSE_PACK_ERROR(1003, "response返回包装失败"),
    APP_ERROR(2000, "业务异常"),
    USER_LOGIN_OK(2001,"用户登录成功"),
    USER_LOGIN_ERROR(2002,"用户登录失败"),
    LOGIN_NAME_IS_REPEAT(2003,"账号已存在，请直接登陆"),
    USER_REGISTER_OK(2004,"用户注册成功"),
    USER_REGISTER_FAILURE(2005,"用户注册失败"),
    PASSWORD_CHANGE_SUCCESS(2111, "密码修改成功"),
    PASSWORD_CHANGE_FAILURE(2112, "密码修改失败"),
    REGION_ERROR(2113,"该地区不存在"),
    CUISINE_NOT_FOUND(2114,"该地区美食不存在"),
    ARC_NOT_FOUND(2115,"该地区景点建筑不存在"),
    USER_LOGIN_NAME_NOT_EXIST(2006,"账号不存在，请注册"),
    USER_TOKEN_UPDATE_FAILURE(2007,"用户Token更新失败，重新登陆"),
    USER_TOKEN_VERIFY_DATE_FAILURE(2008,"TOKEN时间失效，重新登陆"),
    USER_TOKEN_VERIFY_FAILURE(2009,"TOKEN验证失败，重新登陆"),
    VERIFY_CODE_FAILURE(2010,"输入验证码错误，重新输入"),
    USER_LIKE_COU_ERROR(3001,"用户已经点赞此古厝，不能重复点赞。"),
    USER_NOT_LIKE_COU_ERROR(3002,"用户未点赞此古厝，无法取消点赞。"),
    USER_LIKE_COU_SUCCESS(3003,"点赞古厝成功"),
    USER_NOT_LIKE_COU_SUCCESS(3004,"取消点赞古厝成功"),
    USER_NO_LIKES_FOUND(3005,"获取用户所有点赞古厝列表失败" ),
    USER_LIKES_FETCH_SUCCESS(3006,"获取用户所有点赞古厝列表成功" ),
    NO_LIKES_FOUND(3007, "获取所有点赞古厝列表失败" ),
    LIKES_FETCH_SUCCESS(3008, "获取所有点赞古厝列表成功" ),
    EXIST_NOT_PERSONAGE(3009, "文化人物不存在" ),
    EXIST_NOT_LEGEND(3010, "传说故事不存在" ),
    ADD_PERSONAGE_LEGEND_SUCCESS(3011, "添加文化人物的传说故事成功" ),
    EXCEPTION_ERROR(5000,"系统内部错误，请联系管理员"),
    CUO_ERROR(4009,"厝不存在!"),
    USERINFO_ERROR(4008,"用户不存在!");

    private  int code;

    private String msg;



    ResultCode(int code,String msg){
        this.code=code;
        this.msg=msg;
    }


}
